package com.hee.erp.modules.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hee.erp.modules.entity.Wf2Right;
import com.hee.erp.modules.mapper.Wf2RightMapper;
import com.hee.erp.modules.service.IWf2RightService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weizehong
 * @since 2022-05-20
 */
@Service
public class Wf2RightServiceImpl extends ServiceImpl<Wf2RightMapper, Wf2Right> implements IWf2RightService {

    @Override
    public Wf2Right getByRouteName(String routeName) {

        LambdaQueryWrapper<Wf2Right> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Wf2Right::getRouteName, routeName);
        return this.getOne(queryWrapper);
    }
}
